""" __author__ = yuelaiyue2"""
from pymongo import MongoClient


def get_connection(db_name):
    client = MongoClient()
    db = client[db_name]
    return db


def insert_data(data, db, collection_name):
    db[collection_name].insert_one(data)


def close_client(client):
    client.close()





